package ru.payment.wm.impl.response;

import ru.payment.wm.Purse;
import ru.payment.wm.X9Response;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * User: sergey
 * Date: 14.04.2009
 * Time: 20:47:42
 */
public class X9ResponseImpl extends AbstractWebMoneyResponse implements X9Response {

  private static final long serialVersionUID = 8820536216422718173L;
  private List<Purse> purseList = new ArrayList<Purse>();

  public X9ResponseImpl() {
    super();
  }

  public List<Purse> getPurseList() {
    return purseList;
  }

  @Override
  public String toString() {
    String sz = super.toString()+"\n-- purse list ["+getPurseList().size()+"] --";
    for (Purse p : purseList) {
      sz = sz + "\n" + p + "\n---";
    }
    return sz;
  }

}
